package api

import (
	"github.com/gin-gonic/gin"
	"github.com/redis/go-redis/v9"
	"gorm.io/gorm"

	"temp/handler"
)

type DeptApi struct {
	*handler.DeptHandler
}

func (d *DeptApi) Detail(c *gin.Context) {

	d.DeptHandler.Detail(c)
}

func (d *DeptApi) Create(c *gin.Context) {
	d.DeptHandler.Create(c)
}
func NewDeptApi(db *gorm.DB, cache *redis.Client) *DeptApi {
	return &DeptApi{
		DeptHandler: handler.NewDeptHandler(db, cache)}
}
